A lattice.  
 More...
#include <lattice.hpp>
|  | 
|  | lattice (const vocabulary &vocabulary_) | 
|  | Creates a lattice. 
 | 
|  | 
|  | ~lattice () | 
|  | Destroys the lattice. 
 | 
|  | 
| std::size_t | step_count () const | 
|  | Returns the step count. 
 | 
|  | 
| const std::vector< node > & | nodes_at (std::size_t step) const | 
|  | Returns the nodes at the specified step. 
 | 
|  | 
| void | push_back (std::unique_ptr< input > &&p_input) | 
|  | Pushes back an input. 
 | 
|  | 
| std::pair< node, std::unique_ptr< std::vector< int > > > | settle () | 
|  | Settles this lattice. 
 | 
|  | 
◆ lattice()
  
  | 
        
          | tetengo::lattice::lattice::lattice | ( | const vocabulary & | vocabulary_ | ) |  |  | explicit | 
 
Creates a lattice. 
- Parameters
- 
  
  
 
 
◆ nodes_at()
  
  | 
        
          | const std::vector< node > & tetengo::lattice::lattice::nodes_at | ( | std::size_t | step | ) | const |  | nodiscard | 
 
Returns the nodes at the specified step. 
- Parameters
- 
  
  
- Returns
- The nodes.
- Exceptions
- 
  
    | std::out_of_rage | When step is too large. |  
 
 
 
◆ push_back()
      
        
          | void tetengo::lattice::lattice::push_back | ( | std::unique_ptr< input > && | p_input | ) |  | 
      
 
Pushes back an input. 
- Parameters
- 
  
    | p_input | A unique pointer to an input. |  
 
 
 
◆ settle()
  
  | 
        
          | std::pair< node, std::unique_ptr< std::vector< int > > > tetengo::lattice::lattice::settle | ( |  | ) |  |  | nodiscard | 
 
Settles this lattice. 
You can modify the lattice after settlement. Modification of the lattice after settlement invalidate the EOS node.
- Returns
- The EOS node and its preceding edge costs. 
 
 
◆ step_count()
  
  | 
        
          | std::size_t tetengo::lattice::lattice::step_count | ( |  | ) | const |  | nodiscard | 
 
Returns the step count. 
- Returns
- The step count. 
 
 
The documentation for this class was generated from the following file:
- library/lattice/cpp/include/tetengo/lattice/lattice.hpp