Bond
 
Loading...
Searching...
No Matches
bond::RuntimeSchema Class Reference

Represents runtime schema See User's Manual More...

Public Member Functions

 RuntimeSchema ()
 Default constructor. More...
 
 RuntimeSchema (const boost::shared_ptr< SchemaDef > &schema)
 Construct from a share_ptr to a SchemaDef object. More...
 
 RuntimeSchema (const SchemaDef &schema)
 Construct from a reference to a SchemaDef object. More...
 
const SchemaDef & GetSchema () const
 Returns constant reference to SchemaDef object. More...
 

Detailed Description

Represents runtime schema See User's Manual

Constructor & Destructor Documentation

◆ RuntimeSchema() [1/3]

bond::RuntimeSchema::RuntimeSchema ( )

Default constructor.

◆ RuntimeSchema() [2/3]

bond::RuntimeSchema::RuntimeSchema ( const boost::shared_ptr< SchemaDef > &  schema)

Construct from a share_ptr to a SchemaDef object.

◆ RuntimeSchema() [3/3]

bond::RuntimeSchema::RuntimeSchema ( const SchemaDef &  schema)
explicit

Construct from a reference to a SchemaDef object.

This ctor should be used only when it can be guaranteed that liftime of the SchemaDef object referenced by the schema argument is longer than lifetime of any copy of the RuntimeSchema object being constructed. In most cases it is safer to use the ctor taking shared_ptr<SchemaDef>.

Member Function Documentation

◆ GetSchema()

const SchemaDef & bond::RuntimeSchema::GetSchema ( ) const

Returns constant reference to SchemaDef object.