ncmpc  0.30
Data Structures | Public Member Functions | Protected Types | Protected Attributes
Completion Class Referenceabstract

#include <Completion.hxx>

Data Structures

struct  Range
 
struct  Result
 

Public Member Functions

 Completion ()=default
 
 Completion (const Completion &)=delete
 
Completionoperator= (const Completion &)=delete
 
bool empty () const
 
void clear ()
 
template<typename T >
void emplace (T &&value)
 
template<typename T >
void remove (T &&value)
 
Result Complete (const std::string &prefix) const
 
virtual void Pre (const char *value)=0
 
virtual void Post (const char *value, Range range)=0
 

Protected Types

using List = std::set< std::string >
 

Protected Attributes

List list
 

Member Typedef Documentation

◆ List

using Completion::List = std::set<std::string>
protected

Constructor & Destructor Documentation

◆ Completion() [1/2]

Completion::Completion ( )
default

◆ Completion() [2/2]

Completion::Completion ( const Completion )
delete

Member Function Documentation

◆ operator=()

Completion& Completion::operator= ( const Completion )
delete

◆ empty()

bool Completion::empty ( ) const
inline

◆ clear()

void Completion::clear ( )
inline

◆ emplace()

template<typename T >
void Completion::emplace ( T &&  value)
inline

◆ remove()

template<typename T >
void Completion::remove ( T &&  value)
inline

◆ Complete()

Result Completion::Complete ( const std::string &  prefix) const

◆ Pre()

virtual void Completion::Pre ( const char *  value)
pure virtual

◆ Post()

virtual void Completion::Post ( const char *  value,
Range  range 
)
pure virtual

Field Documentation

◆ list

List Completion::list
protected

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