![]() |
NeuroML C++ API
2.3.0
C++ API for NeuroML 2
|
Enumeration class corresponding to the TrueOrFalse schema type. More...
#include <NeuroML_v2.3.hxx>
Public Types | |
enum | value { true_ , false_ } |
Underlying enum type. | |
Public Member Functions | |
TrueOrFalse (value v) | |
Create an instance from the underlying enum value. More... | |
TrueOrFalse (const char *v) | |
Create an instance from a C string. More... | |
TrueOrFalse (const ::std::string &v) | |
Create an instance from a string. More... | |
TrueOrFalse (const ::xml_schema::string &v) | |
Create an instance from the base value. More... | |
TrueOrFalse (const ::xercesc::DOMElement &e, ::xml_schema::flags f=0, ::xml_schema::container *c=0) | |
Create an instance from a DOM element. More... | |
TrueOrFalse (const ::xercesc::DOMAttr &a, ::xml_schema::flags f=0, ::xml_schema::container *c=0) | |
Create an instance from a DOM attribute. More... | |
TrueOrFalse (const ::std::string &s, const ::xercesc::DOMElement *e, ::xml_schema::flags f=0, ::xml_schema::container *c=0) | |
Create an instance from a string fragment. More... | |
TrueOrFalse (const TrueOrFalse &x, ::xml_schema::flags f=0, ::xml_schema::container *c=0) | |
Copy constructor. More... | |
virtual TrueOrFalse * | _clone (::xml_schema::flags f=0, ::xml_schema::container *c=0) const |
Copy the instance polymorphically. More... | |
TrueOrFalse & | operator= (value v) |
Assign the underlying enum value. More... | |
virtual | operator value () const |
Implicit conversion operator to the underlying enum value. More... | |
Enumeration class corresponding to the TrueOrFalse schema type.
Definition at line 10787 of file NeuroML_v2.3.hxx.
neuroml2::TrueOrFalse::TrueOrFalse | ( | value | v | ) |
Create an instance from the underlying enum value.
v | A enum value. |
Definition at line 1758 of file NeuroML_v2.3.cxx.
neuroml2::TrueOrFalse::TrueOrFalse | ( | const char * | v | ) |
Create an instance from a C string.
v | A string value. |
Definition at line 1764 of file NeuroML_v2.3.cxx.
neuroml2::TrueOrFalse::TrueOrFalse | ( | const ::std::string & | v | ) |
Create an instance from a string.
v | A string value. |
Definition at line 1770 of file NeuroML_v2.3.cxx.
neuroml2::TrueOrFalse::TrueOrFalse | ( | const ::xml_schema::string & | v | ) |
Create an instance from the base value.
v | A base value. |
Definition at line 1776 of file NeuroML_v2.3.cxx.
neuroml2::TrueOrFalse::TrueOrFalse | ( | const ::xercesc::DOMElement & | e, |
::xml_schema::flags | f = 0 , |
||
::xml_schema::container * | c = 0 |
||
) |
Create an instance from a DOM element.
e | A DOM element to extract the data from. |
f | Flags to create the new instance with. |
c | A pointer to the object that will contain the new instance. |
Definition at line 22318 of file NeuroML_v2.3.cxx.
neuroml2::TrueOrFalse::TrueOrFalse | ( | const ::xercesc::DOMAttr & | a, |
::xml_schema::flags | f = 0 , |
||
::xml_schema::container * | c = 0 |
||
) |
Create an instance from a DOM attribute.
a | A DOM attribute to extract the data from. |
f | Flags to create the new instance with. |
c | A pointer to the object that will contain the new instance. |
Definition at line 22327 of file NeuroML_v2.3.cxx.
neuroml2::TrueOrFalse::TrueOrFalse | ( | const ::std::string & | s, |
const ::xercesc::DOMElement * | e, | ||
::xml_schema::flags | f = 0 , |
||
::xml_schema::container * | c = 0 |
||
) |
Create an instance from a string fragment.
s | A string fragment to extract the data from. |
e | A pointer to DOM element containing the string fragment. |
f | Flags to create the new instance with. |
c | A pointer to the object that will contain the new instance. |
Definition at line 22336 of file NeuroML_v2.3.cxx.
neuroml2::TrueOrFalse::TrueOrFalse | ( | const TrueOrFalse & | x, |
::xml_schema::flags | f = 0 , |
||
::xml_schema::container * | c = 0 |
||
) |
Copy constructor.
x | An instance to make a copy of. |
f | Flags to create the copy with. |
c | A pointer to the object that will contain the copy. |
For polymorphic object models use the _clone
function instead.
Definition at line 1782 of file NeuroML_v2.3.cxx.
|
virtual |
Copy the instance polymorphically.
f | Flags to create the copy with. |
c | A pointer to the object that will contain the copy. |
This function ensures that the dynamic type of the instance is used for copying and should be used for polymorphic object models instead of the copy constructor.
Definition at line 22346 of file NeuroML_v2.3.cxx.
|
inlinevirtual |
Implicit conversion operator to the underlying enum value.
Definition at line 10910 of file NeuroML_v2.3.hxx.
TrueOrFalse & neuroml2::TrueOrFalse::operator= | ( | value | v | ) |
Assign the underlying enum value.
v | A enum value. |
Definition at line 1790 of file NeuroML_v2.3.cxx.