Ethereum  PoC-8
The C++ Implementation of Ethereum
dev::eth::LogFilter Class Reference

#include <LogFilter.h>

Public Member Functions

 LogFilter (h256 _earliest=EarliestBlockHash, h256 _latest=PendingBlockHash)
 
void streamRLP (RLPStream &_s) const
 
h256 sha3 () const
 
h256 earliest () const
 hash of earliest block which should be filtered More...
 
h256 latest () const
 hash of latest block which should be filtered More...
 
bool isRangeFilter () const
 
std::vector< LogBloombloomPossibilities () const
 
bool matches (LogBloom _bloom) const
 
bool matches (Block const &_b, unsigned _i) const
 
LogEntries matches (TransactionReceipt const &_r) const
 
LogFilter address (Address _a)
 
LogFilter topic (unsigned _index, h256 const &_t)
 
LogFilter withEarliest (h256 _e)
 
LogFilter withLatest (h256 _e)
 

Friends

std::ostream & dev::eth::operator<< (std::ostream &_out, dev::eth::LogFilter const &_s)
 

Detailed Description

Definition at line 50 of file LogFilter.h.

Constructor & Destructor Documentation

◆ LogFilter()

dev::eth::LogFilter::LogFilter ( h256  _earliest = EarliestBlockHash,
h256  _latest = PendingBlockHash 
)
inline

Definition at line 53 of file LogFilter.h.

Member Function Documentation

◆ address()

LogFilter dev::eth::LogFilter::address ( Address  _a)
inline

Definition at line 76 of file LogFilter.h.

◆ bloomPossibilities()

vector< LogBloom > LogFilter::bloomPossibilities ( ) const
Returns
bloom possibilities for all addresses and topics

Definition at line 88 of file LogFilter.cpp.

◆ earliest()

h256 dev::eth::LogFilter::earliest ( ) const
inline

hash of earliest block which should be filtered

Definition at line 59 of file LogFilter.h.

◆ isRangeFilter()

bool LogFilter::isRangeFilter ( ) const

Range filter is a filter which doesn't care about addresses or topics Matches are all entries from earliest to latest

Returns
true if addresses and topics are unspecified

Definition at line 49 of file LogFilter.cpp.

◆ latest()

h256 dev::eth::LogFilter::latest ( ) const
inline

hash of latest block which should be filtered

Definition at line 62 of file LogFilter.h.

◆ matches() [1/3]

bool LogFilter::matches ( Block const &  _b,
unsigned  _i 
) const

Definition at line 83 of file LogFilter.cpp.

◆ matches() [2/3]

bool LogFilter::matches ( LogBloom  _bloom) const

Definition at line 61 of file LogFilter.cpp.

◆ matches() [3/3]

LogEntries LogFilter::matches ( TransactionReceipt const &  _r) const

Definition at line 147 of file LogFilter.cpp.

◆ sha3()

h256 LogFilter::sha3 ( ) const

Definition at line 42 of file LogFilter.cpp.

◆ streamRLP()

void LogFilter::streamRLP ( RLPStream _s) const

Definition at line 37 of file LogFilter.cpp.

◆ topic()

LogFilter dev::eth::LogFilter::topic ( unsigned  _index,
h256 const &  _t 
)
inline

Definition at line 77 of file LogFilter.h.

◆ withEarliest()

LogFilter dev::eth::LogFilter::withEarliest ( h256  _e)
inline

Definition at line 78 of file LogFilter.h.

◆ withLatest()

LogFilter dev::eth::LogFilter::withLatest ( h256  _e)
inline

Definition at line 79 of file LogFilter.h.

Friends And Related Function Documentation

◆ dev::eth::operator<<

std::ostream& dev::eth::operator<< ( std::ostream &  _out,
dev::eth::LogFilter const &  _s 
)
friend

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