Android-cuttlefish cvd tool
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
cuttlefish::NftRule Class Reference

#include <nft_rule.h>

Collaboration diagram for cuttlefish::NftRule:
Collaboration graph
[legend]

Public Member Functions

 ~NftRule ()
 
 NftRule (NftRule &&r) noexcept
 
NftRuleoperator= (NftRule &&r)=delete
 
 NftRule (const NftRule &r)=delete
 
NftRuleoperator= (const NftRule &r)=delete
 

Static Public Member Functions

static Result< NftRuleCreate (Nftables &nft, std::string_view family, std::string_view table, std::string_view chain, std::string_view content, std::string_view tag)
 

Private Member Functions

 NftRule (Nftables *nft, std::string_view family, std::string_view table, std::string_view chain, std::string comment)
 

Private Attributes

Nftablesnft_ = nullptr
 
std::string family_
 
std::string table_
 
std::string chain_
 
std::string comment_
 

Constructor & Destructor Documentation

◆ ~NftRule()

cuttlefish::NftRule::~NftRule ( )

◆ NftRule() [1/3]

cuttlefish::NftRule::NftRule ( NftRule &&  r)
noexcept

◆ NftRule() [2/3]

cuttlefish::NftRule::NftRule ( const NftRule r)
delete

◆ NftRule() [3/3]

cuttlefish::NftRule::NftRule ( Nftables nft,
std::string_view  family,
std::string_view  table,
std::string_view  chain,
std::string  comment 
)
private

Member Function Documentation

◆ Create()

Result< NftRule > cuttlefish::NftRule::Create ( Nftables nft,
std::string_view  family,
std::string_view  table,
std::string_view  chain,
std::string_view  content,
std::string_view  tag 
)
static

◆ operator=() [1/2]

NftRule & cuttlefish::NftRule::operator= ( const NftRule r)
delete

◆ operator=() [2/2]

NftRule & cuttlefish::NftRule::operator= ( NftRule &&  r)
delete

Member Data Documentation

◆ chain_

std::string cuttlefish::NftRule::chain_
private

◆ comment_

std::string cuttlefish::NftRule::comment_
private

◆ family_

std::string cuttlefish::NftRule::family_
private

◆ nft_

Nftables* cuttlefish::NftRule::nft_ = nullptr
private

◆ table_

std::string cuttlefish::NftRule::table_
private

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