當前位置: 首頁>>代碼示例>>C++>>正文


C++ Construct函數代碼示例

本文整理匯總了C++中Construct函數的典型用法代碼示例。如果您正苦於以下問題:C++ Construct函數的具體用法?C++ Construct怎麽用?C++ Construct使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了Construct函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: PvmfPortBaseImpl

PVMFLoopbackIOPort::PVMFLoopbackIOPort(int32 aTag, PVMFLoopbackNode* aNode)
        : PvmfPortBaseImpl(aTag, this)
        , OsclActiveObject(OsclActiveObject::EPriorityNominal, "PVMFLoopbackPort")
{
    Construct(aNode);
}
開發者ID:0omega,項目名稱:platform_external_opencore,代碼行數:6,代碼來源:pvmf_loopback_ioport.cpp

示例2: Construct

Server::Server(int port)
{
	Construct();
	this->Bind(port);	
}
開發者ID:sippeangelo,項目名稱:web,代碼行數:5,代碼來源:server.cpp

示例3: Construct

CSplitString::CSplitString( const char *pString, const char *pSeparator)
{
    Construct( pString, &pSeparator, 1 );
}
開發者ID:Filip98,項目名稱:source-sdk-2013,代碼行數:4,代碼來源:splitstring.cpp

示例4: Construct

GTGTile::GTGTile(){ Construct(); }
開發者ID:Bweeze,項目名稱:Grand-Theft-Gentoo,代碼行數:1,代碼來源:GTGTile.cpp

示例5: Free

void GTGTileSet::Destruct(){
  Free();
  Construct();
}
開發者ID:Bweeze,項目名稱:Grand-Theft-Gentoo,代碼行數:4,代碼來源:GTGTile.cpp

示例6: Capo

 Capo(uint32_t n_samples, int nBuffers, double samplerate){Construct(n_samples, nBuffers, samplerate);}
開發者ID:martsobm,項目名稱:mod-pitchshifter,代碼行數:1,代碼來源:Capo.cpp

示例7: BinaryTree

 BinaryTree (int* data, int size) : size (size), root() {
   root = Construct (data, 0, size);
 }
開發者ID:cdht,項目名稱:Algorithm,代碼行數:3,代碼來源:BinaryTree(AVL+NR).cpp

示例8: Construct

bool XmlDtd::Download(const Url & url)
{
    Resource.Url.Construct(url);
    ((Url&)url).Download(Resource);
    return Construct();
}
開發者ID:reasoning,項目名稱:reason,代碼行數:6,代碼來源:dtd.cpp

示例9: SceneObjectWithRestPosition

SceneObjectReducedCPU::SceneObjectReducedCPU(const char * filenameOBJ, ModalMatrix * modalMatrix): SceneObjectWithRestPosition(filenameOBJ), SceneObjectReduced(filenameOBJ, modalMatrix) 
{
  Construct(modalMatrix);
}
開發者ID:RainVector,項目名稱:LearnOpenGL,代碼行數:4,代碼來源:sceneObjectReducedCPU.cpp

示例10: Drawable2D

Sprite::Sprite(bool ShouldInitTexture) : Drawable2D()
{
    Construct(ShouldInitTexture);
}
開發者ID:mechacrash,項目名稱:raindrop,代碼行數:4,代碼來源:Sprite.cpp

示例11: ASSERT

/////////////////////////////////////////////////////////////////////////////
//++
//
//  CBasePropertyPage::HrInit
//
//  Description:
//      Initialize the page.
//
//  Arguments:
//      peoInout
//          Pointer to the extension object.
//
//  Return Value:
//      S_OK
//          Page initialized successfully.
//
//      Other HRESULTs
//          Page failed to initialize.
//
//--
/////////////////////////////////////////////////////////////////////////////
HRESULT
CBasePropertyPage::HrInit(
    CExtObject * peoInout
    )
{
    ASSERT( peoInout != NULL );

    AFX_MANAGE_STATE( AfxGetStaticModuleState() );

    HRESULT         hr = S_OK;
    CWaitCursor     wc;
    DWORD           sc = ERROR_SUCCESS;
    CClusPropList   cpl;

    m_peo = peoInout;

    //
    //  Don't display a help button.
    //

    m_psp.dwFlags &= ~PSP_HASHELP;

    //
    //  Construct the property page.
    //

    if ( Peo()->BWizard() )
    {
        ASSERT( IddWizardPage() != NULL);
        Construct( IddWizardPage(), IdsCaption() );
    } // if: adding page to wizard
    else
    {
        ASSERT( IddPropertyPage() != NULL );
        Construct( IddPropertyPage(), IdsCaption() );
    } // else: adding page to property sheet

    //
    //  Read the properties private to this resource and parse them.
    //

    ASSERT( Peo() != NULL );
    ASSERT( Peo()->PodObjData() );

    //
    //  Read the properties.
    //

    switch ( Cot() )
    {
        case CLUADMEX_OT_CLUSTER:
        {
            CClusterData * pccd = reinterpret_cast< CClusterData * >( Peo()->PodObjData() );
            ASSERT( pccd && (pccd->GetHCluster() != NULL) );
            sc = cpl.ScGetClusterProperties(
                                      pccd->GetHCluster()
                                    , CLUSCTL_CLUSTER_GET_PRIVATE_PROPERTIES
                                    );
            break;
        }
        case CLUADMEX_OT_NODE:
        {
            CNodeData * pcnd = reinterpret_cast< CNodeData * >( Peo()->PodObjData() );
            ASSERT( pcnd && (pcnd->GetHNode() != NULL) );
            sc = cpl.ScGetNodeProperties(
                                      pcnd->GetHNode()
                                    , CLUSCTL_NODE_GET_PRIVATE_PROPERTIES
                                    );
            break;
        }
        case CLUADMEX_OT_GROUP:
        {
            CGroupData * pcgd = reinterpret_cast< CGroupData * >( Peo()->PodObjData() );
            ASSERT( pcgd && (pcgd->GetHGroup() != NULL) );
            sc = cpl.ScGetGroupProperties(
                                      pcgd->GetHGroup()
                                    , CLUSCTL_GROUP_GET_PRIVATE_PROPERTIES
                                    );
            break;
//.........這裏部分代碼省略.........
開發者ID:Ippei-Murofushi,項目名稱:WindowsSDK7-Samples,代碼行數:101,代碼來源:BasePage.cpp

示例12: CharSequence

String::String():
    CharSequence(NewString(EmptyString))
{
    Construct();
}
開發者ID:DmitrySkiba,項目名稱:itoa-jnipp,代碼行數:5,代碼來源:JavaLang.cpp

示例13: Realloc

 void Realloc(uint32_t n_samples, int nBuffers)
 {
 	Destruct();
 	Construct(n_samples, nBuffers, SampleRate);
 }
開發者ID:martsobm,項目名稱:mod-pitchshifter,代碼行數:5,代碼來源:Capo.cpp

示例14: Construct

CEditShape::CEditShape(LPVOID data, LPCSTR name):CCustomObject(data,name)
{
	Construct(data);
}
開發者ID:2asoft,項目名稱:xray,代碼行數:4,代碼來源:EShape.cpp

示例15: Construct

ESoundSource::ESoundSource(LPVOID data, LPCSTR name)
	:CCustomObject(data,name)
{
	Construct(data);
}
開發者ID:2asoft,項目名稱:xray,代碼行數:5,代碼來源:ESound_Source.cpp


注:本文中的Construct函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。