faiss/c_api/IndexPreTransform_c.cpp
glutamatt 5a187120a5
[ C api ] Indexpretransform get underlying index (#1100)
Approved by @Enet4 so good by me.
2020-02-10 15:00:59 +01:00

22 lines
549 B
C++

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// Copyright 2004-present Facebook. All Rights Reserved.
// -*- c++ -*-
#include "IndexPreTransform_c.h"
#include "IndexPreTransform.h"
#include "macros_impl.h"
using faiss::Index;
using faiss::IndexPreTransform;
DEFINE_DESTRUCTOR(IndexPreTransform)
DEFINE_INDEX_DOWNCAST(IndexPreTransform)
DEFINE_GETTER_PERMISSIVE(IndexPreTransform, FaissIndex*, index)