Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
vcsn::oneset Class Reference

Implementation of labels are ones: there is a single instance of label. More...

#include <oneset.hh>

Collaboration diagram for vcsn::oneset:

Public Types

using self_type = oneset
 
using value_t = vcsn::empty_t
 
using kind_t = labels_are_one
 

Public Member Functions

 oneset ()=default
 
bool open (bool o) const
 Does not make a lot of sense. More...
 
template<typename... Args>
value_t value (Args &&...args) const
 Value constructor. More...
 
std::ostream & print_set (std::ostream &o, symbol format=symbol{"text"}) const
 

Static Public Member Functions

static std::string sname ()
 
static std::string vname (bool=true)
 
static oneset make (std::istream &is)
 Build from the description in is. More...
 
static constexpr bool is_free ()
 
static bool equals (const value_t, const value_t)
 Whether l == r. More...
 
static bool less_than (const value_t, const value_t)
 Whether l < r. More...
 
static value_t special ()
 
static constexpr bool is_special (value_t)
 The special label is indistinguishable for the others. More...
 
static constexpr bool is_ratexpset ()
 
static constexpr bool has_one ()
 
static constexpr bool is_letterized ()
 
static empty_t one ()
 
static bool is_one (empty_t)
 
static empty_t transpose (empty_t)
 
static bool is_letter (empty_t)
 
static empty_t concat (empty_t, empty_t)
 
static std::ostream & print (empty_t, std::ostream &o, const std::string &="text")
 
static size_t size (value_t)
 
static size_t hash (value_t v)
 
static value_t conv (self_type, value_t v)
 
static value_t conv (std::istream &i)
 
static std::set< value_tconvs (std::istream &)
 

Detailed Description

Implementation of labels are ones: there is a single instance of label.

Definition at line 18 of file oneset.hh.

Member Typedef Documentation

Definition at line 24 of file oneset.hh.

Definition at line 21 of file oneset.hh.

Definition at line 22 of file oneset.hh.

Constructor & Destructor Documentation

vcsn::oneset::oneset ( )
default

Member Function Documentation

static empty_t vcsn::oneset::concat ( empty_t  ,
empty_t   
)
inlinestatic

Definition at line 134 of file oneset.hh.

static value_t vcsn::oneset::conv ( self_type  ,
value_t  v 
)
inlinestatic

Definition at line 156 of file oneset.hh.

static value_t vcsn::oneset::conv ( std::istream &  i)
inlinestatic

Definition at line 161 of file oneset.hh.

References vcsn::require().

Here is the call graph for this function:

static std::set<value_t> vcsn::oneset::convs ( std::istream &  )
inlinestatic

Definition at line 174 of file oneset.hh.

static bool vcsn::oneset::equals ( const value_t  ,
const value_t   
)
inlinestatic

Whether l == r.

Definition at line 73 of file oneset.hh.

static constexpr bool vcsn::oneset::has_one ( )
inlinestatic

Definition at line 103 of file oneset.hh.

static size_t vcsn::oneset::hash ( value_t  v)
inlinestatic

Definition at line 150 of file oneset.hh.

References vcsn::hash_value().

Here is the call graph for this function:

static constexpr bool vcsn::oneset::is_free ( )
inlinestatic

Definition at line 56 of file oneset.hh.

static bool vcsn::oneset::is_letter ( empty_t  )
inlinestatic

Definition at line 129 of file oneset.hh.

static constexpr bool vcsn::oneset::is_letterized ( )
inlinestatic

Definition at line 109 of file oneset.hh.

static bool vcsn::oneset::is_one ( empty_t  )
inlinestatic

Definition at line 119 of file oneset.hh.

static constexpr bool vcsn::oneset::is_ratexpset ( )
inlinestatic

Definition at line 97 of file oneset.hh.

static constexpr bool vcsn::oneset::is_special ( value_t  )
inlinestatic

The special label is indistinguishable for the others.

Definition at line 91 of file oneset.hh.

static bool vcsn::oneset::less_than ( const value_t  ,
const value_t   
)
inlinestatic

Whether l < r.

Definition at line 79 of file oneset.hh.

static oneset vcsn::oneset::make ( std::istream &  is)
inlinestatic

Build from the description in is.

Definition at line 39 of file oneset.hh.

References vcsn::labels_are_one::make().

Here is the call graph for this function:

static empty_t vcsn::oneset::one ( )
inlinestatic

Definition at line 114 of file oneset.hh.

Referenced by vcsn::random_label().

bool vcsn::oneset::open ( bool  o) const
inline

Does not make a lot of sense.

Definition at line 51 of file oneset.hh.

static std::ostream& vcsn::oneset::print ( empty_t  ,
std::ostream &  o,
const std::string &  = "text" 
)
inlinestatic

Definition at line 139 of file oneset.hh.

std::ostream& vcsn::oneset::print_set ( std::ostream &  o,
symbol  format = symbol{"text"} 
) const
inline

Definition at line 180 of file oneset.hh.

static size_t vcsn::oneset::size ( value_t  )
inlinestatic

Definition at line 145 of file oneset.hh.

static std::string vcsn::oneset::sname ( )
inlinestatic

Definition at line 28 of file oneset.hh.

Referenced by vname().

static value_t vcsn::oneset::special ( )
inlinestatic

Definition at line 84 of file oneset.hh.

static empty_t vcsn::oneset::transpose ( empty_t  )
inlinestatic

Definition at line 124 of file oneset.hh.

template<typename... Args>
value_t vcsn::oneset::value ( Args &&...  args) const
inline

Value constructor.

Definition at line 66 of file oneset.hh.

static std::string vcsn::oneset::vname ( bool  = true)
inlinestatic

Definition at line 33 of file oneset.hh.

References sname().

Here is the call graph for this function:


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