NeuroML C++ API  2.3.0
C++ API for NeuroML 2
List of all members
neuroml2::Constant Class Reference

Class corresponding to the Constant schema type. More...

#include <NeuroML_v2.3.hxx>

+ Inheritance diagram for neuroml2::Constant:
+ Collaboration diagram for neuroml2::Constant:

name

Accessor and modifier functions for the name required attribute.

typedef ::xml_schema::string name_type
 Attribute type.
 
typedef ::xsd::cxx::tree::traits< name_type, char > name_traits
 Attribute traits type.
 
const name_typename () const
 Return a read-only (constant) reference to the attribute. More...
 
name_typename ()
 Return a read-write reference to the attribute. More...
 
void name (const name_type &x)
 Set the attribute value. More...
 
void name (::std::unique_ptr< name_type > p)
 Set the attribute value without copying. More...
 

dimension

Accessor and modifier functions for the dimension required attribute.

typedef ::xml_schema::string dimension_type
 Attribute type.
 
typedef ::xsd::cxx::tree::traits< dimension_type, char > dimension_traits
 Attribute traits type.
 
const dimension_typedimension () const
 Return a read-only (constant) reference to the attribute. More...
 
dimension_typedimension ()
 Return a read-write reference to the attribute. More...
 
void dimension (const dimension_type &x)
 Set the attribute value. More...
 
void dimension (::std::unique_ptr< dimension_type > p)
 Set the attribute value without copying. More...
 

value

Accessor and modifier functions for the value required attribute.

typedef ::neuroml2::Nml2Quantity value_type
 Attribute type.
 
typedef ::xsd::cxx::tree::traits< value_type, char > value_traits
 Attribute traits type.
 
const value_typevalue () const
 Return a read-only (constant) reference to the attribute. More...
 
value_typevalue ()
 Return a read-write reference to the attribute. More...
 
void value (const value_type &x)
 Set the attribute value. More...
 
void value (::std::unique_ptr< value_type > p)
 Set the attribute value without copying. More...
 

description

Accessor and modifier functions for the description optional attribute.

typedef ::xml_schema::string description_type
 Attribute type.
 
typedef ::xsd::cxx::tree::optional< description_typedescription_optional
 Attribute optional container type.
 
typedef ::xsd::cxx::tree::traits< description_type, char > description_traits
 Attribute traits type.
 
const description_optionaldescription () const
 Return a read-only (constant) reference to the attribute container. More...
 
description_optionaldescription ()
 Return a read-write reference to the attribute container. More...
 
void description (const description_type &x)
 Set the attribute value. More...
 
void description (const description_optional &x)
 Set the attribute value. More...
 
void description (::std::unique_ptr< description_type > p)
 Set the attribute value without copying. More...
 

Constructors

 Constant (const name_type &, const dimension_type &, const value_type &)
 Create an instance from the ultimate base and initializers for required elements and attributes.
 
 Constant (const ::xercesc::DOMElement &e, ::xml_schema::flags f=0, ::xml_schema::container *c=0)
 Create an instance from a DOM element. More...
 
 Constant (const Constant &x, ::xml_schema::flags f=0, ::xml_schema::container *c=0)
 Copy constructor. More...
 
virtual Constant_clone (::xml_schema::flags f=0, ::xml_schema::container *c=0) const
 Copy the instance polymorphically. More...
 
Constantoperator= (const Constant &x)
 Copy assignment operator. More...
 
virtual ~Constant ()
 Destructor.
 

Additional Inherited Members

- Public Member Functions inherited from neuroml2::BaseWithoutId
 BaseWithoutId ()
 Create an instance from the ultimate base and initializers for required elements and attributes.
 
 BaseWithoutId (const ::xercesc::DOMElement &e, ::xml_schema::flags f=0, ::xml_schema::container *c=0)
 Create an instance from a DOM element. More...
 
 BaseWithoutId (const ::xercesc::DOMAttr &a, ::xml_schema::flags f=0, ::xml_schema::container *c=0)
 Create an instance from a DOM attribute. More...
 
 BaseWithoutId (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...
 
 BaseWithoutId (const BaseWithoutId &x, ::xml_schema::flags f=0, ::xml_schema::container *c=0)
 Copy constructor. More...
 
virtual ~BaseWithoutId ()
 Destructor.
 

Detailed Description

Class corresponding to the Constant schema type.

LEMS ComponentType for Constant.

Definition at line 5232 of file NeuroML_v2.3.hxx.

Constructor & Destructor Documentation

◆ Constant() [1/2]

neuroml2::Constant::Constant ( const ::xercesc::DOMElement &  e,
::xml_schema::flags  f = 0,
::xml_schema::container c = 0 
)

Create an instance from a DOM element.

Parameters
eA DOM element to extract the data from.
fFlags to create the new instance with.
cA pointer to the object that will contain the new instance.

Definition at line 19682 of file NeuroML_v2.3.cxx.

◆ Constant() [2/2]

neuroml2::Constant::Constant ( const Constant x,
::xml_schema::flags  f = 0,
::xml_schema::container c = 0 
)

Copy constructor.

Parameters
xAn instance to make a copy of.
fFlags to create the copy with.
cA pointer to the object that will contain the copy.

For polymorphic object models use the _clone function instead.

Definition at line 19670 of file NeuroML_v2.3.cxx.

Member Function Documentation

◆ _clone()

Constant * neuroml2::Constant::_clone ( ::xml_schema::flags  f = 0,
::xml_schema::container c = 0 
) const
virtual

Copy the instance polymorphically.

Parameters
fFlags to create the copy with.
cA pointer to the object that will contain the copy.
Returns
A pointer to the dynamically allocated 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.

Reimplemented from neuroml2::BaseWithoutId.

Definition at line 19756 of file NeuroML_v2.3.cxx.

◆ description() [1/5]

Constant::description_optional & neuroml2::Constant::description ( )

Return a read-write reference to the attribute container.

Returns
A reference to the optional container.

Definition at line 544 of file NeuroML_v2.3.cxx.

◆ description() [2/5]

const Constant::description_optional & neuroml2::Constant::description ( ) const

Return a read-only (constant) reference to the attribute container.

Returns
A constant reference to the optional container.

Definition at line 538 of file NeuroML_v2.3.cxx.

◆ description() [3/5]

void neuroml2::Constant::description ( ::std::unique_ptr< description_type p)

Set the attribute value without copying.

Parameters
pA new value to use.

This function will try to use the passed value directly instead of making a copy.

Definition at line 562 of file NeuroML_v2.3.cxx.

◆ description() [4/5]

void neuroml2::Constant::description ( const description_optional x)

Set the attribute value.

Parameters
xAn optional container with the new value to set.

If the value is present in x then this function makes a copy of this value and sets it as the new value of the attribute. Otherwise the attribute container is set the 'not present' state.

Definition at line 556 of file NeuroML_v2.3.cxx.

◆ description() [5/5]

void neuroml2::Constant::description ( const description_type x)

Set the attribute value.

Parameters
xA new value to set.

This function makes a copy of its argument and sets it as the new value of the attribute.

Definition at line 550 of file NeuroML_v2.3.cxx.

◆ dimension() [1/4]

Constant::dimension_type & neuroml2::Constant::dimension ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.

Definition at line 496 of file NeuroML_v2.3.cxx.

◆ dimension() [2/4]

const Constant::dimension_type & neuroml2::Constant::dimension ( ) const

Return a read-only (constant) reference to the attribute.

Returns
A constant reference to the attribute.

Definition at line 490 of file NeuroML_v2.3.cxx.

◆ dimension() [3/4]

void neuroml2::Constant::dimension ( ::std::unique_ptr< dimension_type p)

Set the attribute value without copying.

Parameters
pA new value to use.

This function will try to use the passed value directly instead of making a copy.

Definition at line 508 of file NeuroML_v2.3.cxx.

◆ dimension() [4/4]

void neuroml2::Constant::dimension ( const dimension_type x)

Set the attribute value.

Parameters
xA new value to set.

This function makes a copy of its argument and sets it as the new value of the attribute.

Definition at line 502 of file NeuroML_v2.3.cxx.

◆ name() [1/4]

Constant::name_type & neuroml2::Constant::name ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.

Definition at line 472 of file NeuroML_v2.3.cxx.

◆ name() [2/4]

const Constant::name_type & neuroml2::Constant::name ( ) const

Return a read-only (constant) reference to the attribute.

Returns
A constant reference to the attribute.

Definition at line 466 of file NeuroML_v2.3.cxx.

◆ name() [3/4]

void neuroml2::Constant::name ( ::std::unique_ptr< name_type p)

Set the attribute value without copying.

Parameters
pA new value to use.

This function will try to use the passed value directly instead of making a copy.

Definition at line 484 of file NeuroML_v2.3.cxx.

◆ name() [4/4]

void neuroml2::Constant::name ( const name_type x)

Set the attribute value.

Parameters
xA new value to set.

This function makes a copy of its argument and sets it as the new value of the attribute.

Definition at line 478 of file NeuroML_v2.3.cxx.

◆ operator=()

Constant & neuroml2::Constant::operator= ( const Constant x)

Copy assignment operator.

Parameters
xAn instance to make a copy of.
Returns
A reference to itself.

For polymorphic object models use the _clone function instead.

Definition at line 19763 of file NeuroML_v2.3.cxx.

◆ value() [1/4]

Constant::value_type & neuroml2::Constant::value ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.

Definition at line 520 of file NeuroML_v2.3.cxx.

◆ value() [2/4]

const Constant::value_type & neuroml2::Constant::value ( ) const

Return a read-only (constant) reference to the attribute.

Returns
A constant reference to the attribute.

Definition at line 514 of file NeuroML_v2.3.cxx.

◆ value() [3/4]

void neuroml2::Constant::value ( ::std::unique_ptr< value_type p)

Set the attribute value without copying.

Parameters
pA new value to use.

This function will try to use the passed value directly instead of making a copy.

Definition at line 532 of file NeuroML_v2.3.cxx.

◆ value() [4/4]

void neuroml2::Constant::value ( const value_type x)

Set the attribute value.

Parameters
xA new value to set.

This function makes a copy of its argument and sets it as the new value of the attribute.

Definition at line 526 of file NeuroML_v2.3.cxx.


The documentation for this class was generated from the following files: