ReFRACtor
FullPhysics::type_index Class Reference

This is a wrapper around std::type_info that allows it to be used as an index in a associative container. More...

#include <fp_type_index.h>

+ Inheritance diagram for FullPhysics::type_index:
+ Collaboration diagram for FullPhysics::type_index:

Public Member Functions

 type_index ()
 Default constructor. More...
 
 type_index (std::type_info const &id)
 Constructor. More...
 
std::string name () const
 Return type name. More...
 
bool operator< (type_index const &other) const
 Comparison operator. More...
 
bool operator== (type_index const &other) const
 Comparison operator. More...
 

Detailed Description

This is a wrapper around std::type_info that allows it to be used as an index in a associative container.

This is actually in cxx11, but we don't want to depend on using a cxx11 compiler. When these become more the standard compiler, we can replace this class with std::type_info.

Definition at line 20 of file fp_type_index.h.

Constructor & Destructor Documentation

◆ type_index() [1/2]

FullPhysics::type_index::type_index ( )
inline

Default constructor.

Definition at line 27 of file fp_type_index.h.

◆ type_index() [2/2]

FullPhysics::type_index::type_index ( std::type_info const &  id)
inline

Constructor.

Definition at line 33 of file fp_type_index.h.

Member Function Documentation

◆ name()

std::string FullPhysics::type_index::name ( ) const
inline

Return type name.

Definition at line 53 of file fp_type_index.h.

◆ operator<()

bool FullPhysics::type_index::operator< ( type_index const &  other) const
inline

Comparison operator.

Definition at line 46 of file fp_type_index.h.

◆ operator==()

bool FullPhysics::type_index::operator== ( type_index const &  other) const
inline

Comparison operator.

Definition at line 39 of file fp_type_index.h.


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

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:14