IN2OSM  1.0.1
GenericSchemaDocument< ValueT, Allocator >::SchemaEntry
Collaboration diagram for GenericSchemaDocument< ValueT, Allocator >::SchemaEntry:
Collaboration graph

Public Member Functions

 SchemaEntry (const PointerType &p, SchemaType *s, bool o, Allocator *allocator)
 
 ~SchemaEntry ()
 

Public Attributes

PointerType pointer
 
SchemaTypeschema
 
bool owned
 

Detailed Description

template<typename ValueT, typename Allocator = CrtAllocator>
struct GenericSchemaDocument< ValueT, Allocator >::SchemaEntry

Definition at line 1621 of file schema.h.

Constructor & Destructor Documentation

◆ SchemaEntry()

SchemaEntry ( const PointerType p,
SchemaType s,
bool  o,
Allocator *  allocator 
)
inline

Definition at line 1622 of file schema.h.

1622 : pointer(p, allocator), schema(s), owned(o) {}
PointerType pointer
Definition: schema.h:1629
SchemaType * schema
Definition: schema.h:1630
bool owned
Definition: schema.h:1631

◆ ~SchemaEntry()

~SchemaEntry ( )
inline

Definition at line 1623 of file schema.h.

1623  {
1624  if (owned) {
1625  schema->~SchemaType();
1626  Allocator::Free(schema);
1627  }
1628  }
SchemaType * schema
Definition: schema.h:1630
bool owned
Definition: schema.h:1631

Member Data Documentation

◆ owned

bool owned

Definition at line 1631 of file schema.h.

◆ pointer

PointerType pointer

Definition at line 1629 of file schema.h.

◆ schema

SchemaType* schema

Definition at line 1630 of file schema.h.


The documentation for this struct was generated from the following file: