tetengo 1.8.1
A multipurpose library set
Loading...
Searching...
No Matches
tetengo::lattice::string_input Class Reference

A string input. More...

#include <string_input.hpp>

+ Inheritance diagram for tetengo::lattice::string_input:
+ Collaboration diagram for tetengo::lattice::string_input:

Public Member Functions

 string_input (std::string value)
 Creates a string input key.
 
virtual ~string_input ()
 Destroys the string input.
 
const std::string & value () const
 Returns the value.
 
std::string & value ()
 Returns the value.
 
- Public Member Functions inherited from tetengo::lattice::input
virtual ~input ()
 Destroys the input.
 
std::size_t hash_value () const
 Returns the hash value.
 
std::size_t length () const
 Returns the length.
 
std::unique_ptr< inputclone () const
 Clone this input.
 
std::unique_ptr< inputcreate_subrange (std::size_t offset, std::size_t length) const
 Creates a subrange.
 
void append (std::unique_ptr< input > &&p_another)
 Appends another input.
 
template<typename C >
bool is () const
 Returns true when this object can be casted to the specified concrete input.
 
template<typename C >
const C & as () const
 Casts this object to the specified concrete input.
 
template<typename C >
C & as ()
 Casts this object to the specified concrete input.
 

Detailed Description

A string input.

Template Parameters
TA type.

Constructor & Destructor Documentation

◆ string_input()

tetengo::lattice::string_input::string_input ( std::string  value)
explicit

Creates a string input key.

Parameters
valueA value.

Member Function Documentation

◆ value() [1/2]

std::string & tetengo::lattice::string_input::value ( )

Returns the value.

Returns
The value.

◆ value() [2/2]

const std::string & tetengo::lattice::string_input::value ( ) const

Returns the value.

Returns
The value.

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