[#GCSFilter-2constructor-0a]
= xref:GCSFilter.adoc[GCSFilter]::GCSFilter
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;blockfilter&period;h&gt;`

Constructs an empty filter&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:GCSFilter/2constructor-08.adoc[GCSFilter](xref:GCSFilter/Params.adoc[Params] const& params = Params());
----

[.small]#xref:GCSFilter/2constructor-08.adoc[_» more&period;&period;&period;_]#

Builds a new filter from the params and set of elements&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:GCSFilter/2constructor-03.adoc[GCSFilter](
    xref:GCSFilter/Params.adoc[Params] const& params,
    xref:GCSFilter/ElementSet.adoc[ElementSet] const& elements);
----

[.small]#xref:GCSFilter/2constructor-03.adoc[_» more&period;&period;&period;_]#

Reconstructs an already&hyphen;created filter from an encoding&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:GCSFilter/2constructor-06.adoc[GCSFilter](
    xref:GCSFilter/Params.adoc[Params] const& params,
    std::vector&lt;unsigned char&gt; encoded&lowbar;filter,
    bool skip&lowbar;decode&lowbar;check);
----

[.small]#xref:GCSFilter/2constructor-06.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *params*
| The SipHash keys and Golomb&hyphen;Rice coding parameters&period;
| *elements*
| The set of elements to insert into the filter&period;
| *encoded&lowbar;filter*
| The serialized filter contents to decode&period;
| *skip&lowbar;decode&lowbar;check*
| If true, skip validating the encoded contents&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
