SheafSystem  0.0.0.0
sheaf::arg_list::arg_type Struct Reference

The internal argument type. More...

#include <arg_list.h>

Public Member Functions

primitive_type type () const
 The type of the argument. More...
 
void put_type (primitive_type xid)
 Sets the type of the argument to xid. More...
 
void put_type (int xid)
 Sets the type of the argument to xid. More...
 
 arg_type ()
 Create an instance with empty name. More...
 
 arg_type (const std::string &xname)
 Create an instance with name == xname and default value. More...
 
 arg_type (const char *xname)
 Create an instance with name == xname and default value. More...
 
bool operator== (const arg_type &xother) const
 True if and only if name and value of this are identical to name and value, respectively, of xother. More...
 
bool empty () const
 True if and only if name is empty. More...
 

Public Attributes

std::string name
 The name of the argument. More...
 
primitive_value value
 The value of the argument. More...
 

Detailed Description

The internal argument type.

Definition at line 76 of file arg_list.h.

Constructor & Destructor Documentation

◆ arg_type() [1/3]

sheaf::arg_list::arg_type::arg_type ( )
inline

Create an instance with empty name.

Definition at line 112 of file arg_list.h.

◆ arg_type() [2/3]

sheaf::arg_list::arg_type::arg_type ( const std::string &  xname)
inline

Create an instance with name == xname and default value.

Definition at line 117 of file arg_list.h.

◆ arg_type() [3/3]

sheaf::arg_list::arg_type::arg_type ( const char *  xname)
inline

Create an instance with name == xname and default value.

Definition at line 124 of file arg_list.h.

Member Function Documentation

◆ empty()

bool sheaf::arg_list::arg_type::empty ( ) const
inline

True if and only if name is empty.

Definition at line 141 of file arg_list.h.

References fiber_bundle::vd_algebra::operator+=(), and sheaf::operator<<().

Referenced by sheaf::arg_list::arg_list().

◆ operator==()

bool sheaf::arg_list::arg_type::operator== ( const arg_type xother) const
inline

True if and only if name and value of this are identical to name and value, respectively, of xother.

Definition at line 133 of file arg_list.h.

References name, and value.

◆ put_type() [1/2]

void sheaf::arg_list::arg_type::put_type ( primitive_type  xid)
inline

Sets the type of the argument to xid.

Definition at line 94 of file arg_list.h.

Referenced by sheaf::arg_list::clear(), and sheaf::poset_dof_map::get_dof_tuple().

◆ put_type() [2/2]

void sheaf::arg_list::arg_type::put_type ( int  xid)

Sets the type of the argument to xid.

Definition at line 753 of file arg_list.cc.

References sheaf::primitive_attributes::id(), sheaf::primitive_value::id(), sheaf::operator<<(), and sheaf::arg_list::value().

◆ type()

Member Data Documentation

◆ name

std::string sheaf::arg_list::arg_type::name

◆ value


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